package hcn.protocol.brandnew.dengji.jibendangan;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import org.atag.sysrouter.annotation.DictionaryMapping;


/**
 * 黑名单信息监测-请求信息 - ODS_02040019
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class SubmitReviewRequest extends BaseRequest {

    /**
     * 患者信息
     */
    @XmlElement(name = "Patient")
    private Patient patient;
    /**
     * 黑名单记录
     */
    @XmlElement(name = "BlackPatientInfo")
    private BlackPatientInfo blackPatientInfo;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Patient {

        /**
         * 业务系统患者档案ID
         */
        @XmlElement(name = "SourcePatientId")
        private String sourcePatientId;
        /**
         * 身份证件号码
         */
        @XmlElement(name = "IdCard")
        private String idCard;
        /**
         * 身份证件类别代码
         */
        @XmlElement(name = "IdCardCode")
        @DictionaryMapping(id = "CV02_01_101")
        private String idCardCode;
        /**
         * 患者姓名
         */
        @XmlElement(name = "Name")
        private String name;
        /**
         * 区域患者标识
         */
        @XmlElement(name = "MPIID")
        private String mpiid;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class BlackPatientInfo {

        /**
         * 就诊医疗机构组织机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 黑名单记录ID
         */
        @XmlElement(name = "BlacklistNum")
        private String blacklistNum;
    }

}
